package com.sv.service;

import org.springframework.stereotype.Service;

import com.sv.domain.User;

@Service
public class UserService {

    public void addUser(User user) {
        user.addUser();
    }

    public User findUserByLogonUserName(String logonUserName) {
        return new User().selectUserByLogonUserName(logonUserName);
    }
    
    public User findUserByUserId(int userId){
        return new User().selectUserByUserId(userId);
    }
}
